package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.StrategyCatalogQuery;
import cn.wolfcode.wolf2w.vo.CatalogVo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCatalogService {
    void save(StrategyCatalog strategyCatalog);
    void update(StrategyCatalog strategyCatalog);
    void delete(String id);
    StrategyCatalog get(String id);
    List<StrategyCatalog> listAll();

    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 获取 目的地+目的地下的攻略分类的对象 CatalogVo
     * @return
     */
    List<CatalogVo> getCalalogVo();

    /**
     * 通过目的id找 分类集合
     * @param destId
     * @return
     */
    List<StrategyCatalog> findByDestId(String destId);
}
